This XML describes the controller hierarchy for the Tutorial application's select Studio dialog. The XML tags--MODALDIALOGCONTROLLER, ACTIONBUTTONSCONTROLLER, and so on-- specify a controller class. The XML attributes--reuseMode, disposeIfDeactivated, and so on--specify how to configure the corresponding controller.
The EOXMLUnarchiver maps XML tags to particular EOController classes. For example, the following table describes the mappings for the tags in the select Studio dialog XML.
XML Tag |
Controller Class |
---|---|
You can change the controller class with which a particular XML tag corresponds by writing a custom rule or by freezing XML. Writing custom rules and freezing XML are discussed in the chapter Customizing Direct to Java Client Applications.
As an XML unarchiver creates the controller hierarchy, it configures the controllers according to the specified XML attribute values. For example, the XML attributes for the EOTextField are valueKey and isQueryWidget: <TEXTFIELDCONTROLLER valueKey="name" isQueryWidget="true"/>These attributes correspond to the EOTextField methods setValueKey and setIsQueryWidget. The valueKey="name" specifies that the text field controller corresponds to a property named "name" (in this case, the name attribute of a Studio object). The isQueryWidget="true" specifies that the text field is used to get search criteria from the user and not to display and edit a property's value
For information on the XML tags and attributes for the EOController classes, see the EOApplication Framework Referenceand the EOGeneration Framework Reference.